import Vue from 'vue'
import App from './App.vue'
import router from './permission'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
import './assets/iconcss/index.css'
import moment from 'moment'
Vue.prototype.moment = moment
Vue.filter('dateFormat', function (dateStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(dateStr).format(pattern)
})


axios.defaults.baseURL = 'http://192.168.29.175/8888/'
Vue.prototype.$http = axios

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueAxios,axios)



new Vue({
  el:'#app',
  router,
  store,
  axios,
  render: h => h(App)
}).$mount('#app')
